home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / text / mac / faqs.206 < prev    next >
Encoding:
Text File  |  1996-02-12  |  28.2 KB  |  672 lines

  1. Frequently Asked Questions (FAQS);faqs.206
  2.  
  3.  
  4.  
  5. V.42bis can send data compressed or not, depending on the
  6. data.  There are some types of data that cannot be
  7. compressed.  For example, if a file was compressed first,
  8. and then sent through a V.42bis modem, the modem would not
  9. likely reduce the number of bits sent.  Indeed it is likely
  10. that the amount of data would increase somewhat.
  11.  
  12. To avoid this problem, the algorithm constantly monitors the
  13. compressibility of the data, and if it finds fewer bits
  14. would be necessary to send it uncompressed, it switches to
  15. transparent mode.  The sender informs the receiver of this
  16. transition through a reserved escape code.  Henceforth the
  17. data is passed as plain bytes.
  18.  
  19. The choice of escape code is clever.  Initially, it is a
  20. zero byte.  Any occurrence of the escape code is replaced,
  21. as is customary, by two escape codes.  In order to prevent a
  22. string of escape codes from temporarily cutting throughput
  23. in half, the escape code is redefined by adding 51 mod 256
  24. each time it is used.
  25.  
  26. While transmitting in transparent mode, the sender maintains
  27. the LZW trees of strings, and expects the receiver to do
  28. likewise.  If it finds an advantage in returning to
  29. compressed mode, it will do so, first informing the receiver
  30. by a special control code.  Thus the method allows the
  31. hardware to adapt to the compressibility of the data.
  32.  
  33.  
  34. The CCITT standards documents are available by ftp on src.doc.ic.ac.uk,
  35. in directory doc/ccitt-standards/ccitt. The v42bis standard is in
  36. /doc/ccitt-standards/ccitt/1992/v/v42bis.asc.Z.
  37. (ccitt standards used to be on ftp.uu.net in /doc/standards/ccitt
  38. but this directory is now empty -- Aug 11th.)
  39.  
  40. ------------------------------------------------------------------------------
  41.  
  42. Subject: [12] I need source for the winners of the Dr Dobbs compression contest
  43.  
  44.  
  45. The source of the top 6 programs of the Feb 91 Dr Dobbs data compression
  46. contest are available by ftp on
  47.   wsmr-simtel20.army.mil in pd1:<msdos.compress>ddjcompr.zip. [192.88.110.2]
  48.   garbo.uwasa.fi:/pc/source/ddjcompr.zip [128.214.87.1]
  49.  
  50. The sources are in MSDOS end-of-line format, one directory per
  51. program.  Unix or VMS users, use "unzip -a ddjcompr" to get correct
  52. end-of-lines (add -d to recreate the directory structure if you are
  53. using an obsolete version of unzip such as 4.1). Three of the 6
  54. programs are not portable and only run on MSDOS. compact and urban
  55. work on Unix, sixpack only requires minor modifications.
  56.  
  57. ------------------------------------------------------------------------------
  58.  
  59. Subject: [13] I need source for arithmetic coding
  60.  
  61.  
  62. (See question 70 for an introduction to arithmetic coding.)
  63.  
  64. The source for the arithmetic coder described in Chap.5 of Bell,
  65. Cleary, and Witten's book "Text Compression" (see question 7 above)
  66. (or, equivalently, in: Witten, Neal, and Cleary's article "Arithmetic
  67. Coding for data Compression" from Communications of the Association
  68. for Computing Machinery, 30 (6), pp.520-540, June, 1987) is available
  69. via anonymous ftp from fsa.cpsc.ucalgary.ca (136.159.2.1) in directory
  70. /pub/arithmetic.coding.  It only comes with a simple order-0 model but
  71. it's set up so that adding your own more sophisticated one is
  72. straightforward.
  73.  
  74. A low precision arithmetic coding implementation avoiding hardware
  75. division is available on the same site (fsa.cpsc.ucalgary.ca)
  76. in /pub/arithmetic.coding/low.precision.version/low.precision.version.shar.
  77.  
  78. Kris Popat <popat@image.mit.edu> has worked on "Scalar Quantization
  79. with Arithmetic Coding."  It describes an arithmetic coding technique
  80. which is quite general and computationally inexpensive.  The
  81. documentation and example C code are available via anonymous ftp from
  82. media-lab.media.mit.edu (18.85.0.2), in /pub/k-arith-code.
  83.  
  84. The program 'urban' in ddjcompr.zip (see item 12 above) is a high order
  85. arithmetic coder working at the bit level. It is written by Urban Koistinen
  86. <md85-epi@nada.kth.se>.
  87.  
  88. ------------------------------------------------------------------------------
  89.  
  90. Subject: [15] Where can I get image compression programs?
  91.  
  92.  
  93. JPEG:
  94.       Source code for most any machine:
  95.       ftp.uu.net:/graphics/jpeg/jpegsrc.v3.tar.Z [137.39.1.9]
  96.       nic.funet.fi:/pub/graphics/programs/jpeg/jpegsrc.v3.tar.Z [128.214.6.100]
  97.       Contact: jpeg-info@uunet.uu.net (Independent JPEG Group)
  98.  
  99.       xv, an image viewer which can read JPEG pictures, is available in
  100.       ftp.cicb.fr:/pub/X11R5/contrib/xv-2.20.tar.Z  [129.20.128.2]
  101.  
  102. epic:
  103.       whitechapel.media.mit.edu:/pub/epic.tar.Z [18.85.0.125]
  104.       The "Lenna" test image is available as part of the EPIC package,
  105.       where it is named "test_image".
  106.  
  107. compfits:
  108.       uwila.cfht.hawaii.edu:/pub/compfits/compfits.tar.Z  [128.171.80.50]
  109.       Contact: Jim Wright <jwright@cfht.hawaii.edu>
  110.  
  111. fitspress:
  112.       cfata4.harvard.edu:/pub/fitspress08.tar.Z [128.103.40.79]
  113.  
  114. tiff:
  115.       For source and sample images, see question 18 below.
  116.  
  117. ------------------------------------------------------------------------------
  118.  
  119. Subject: [16] What is the state of the art in lossless image compression?
  120.  
  121.  
  122. The current state-of-the-art is the JBIG algorithm.  For an
  123. introduction to JBIG, see question 74 in part 2.
  124.  
  125. JBIG works best on bi-level images (like faxes) and also works well on
  126. Gray-coded grey scale images up to about six or so bits per pixel.  You
  127. just apply JBIG to the bit planes individually.  For more bits/pixel,
  128. lossless JPEG provides better performance, sometimes. (For JPEG, see
  129. question 19 below.)
  130.  
  131. You can find a description of JBIG in ISO/IEC CD 11544, contained in
  132. document ISO/IEC JTC1/SC2/N2285.  The only way to get it is to ask
  133. your National Standards Body for a copy. In the USA, call ANSI at
  134. (212) 642-4900.
  135.  
  136. ------------------------------------------------------------------------------
  137.  
  138. Subject: [17] What is the state of fractal compression?
  139.  
  140.  
  141. from Tal Kubo <kubo@zariski.harvard.edu>:
  142.  
  143. According to Barnsley's book 'Fractals Everywhere', this method is
  144. based on a measure of deviation between a given image and its
  145. approximation by an IFS code.  The Collage Theorem states that there is
  146. a convergent process to minimize this deviation.  Unfortunately,
  147. according to an article Barnsley wrote for BYTE a few years ago, this
  148. convergence was rather slow, about 100 hours on a Cray, unless assisted by
  149. a person.
  150.  
  151. Barnsley et al are not divulging any technical information beyond the
  152. meager bit in 'Fractals Everywhere'.  The book explains the idea of IFS
  153. codes at length, but is vague about the application of the Collage theorem
  154. to specific compression problems.
  155.  
  156. There is reason to believe that Barnsley's company has
  157. *no algorithm* which takes a given reasonable image and achieves
  158. the compression ratios initially claimed for their fractal methods.
  159. The 1000-to-1 compression advertised was achieved only for a 'rigged'
  160. class of images, with human assistance. The best unaided
  161. performance I've heard of is good lossy compression of about 80-1.
  162.  
  163. Steve Tate <srt@duke.cs.duke.edu> confirms:
  164.  
  165. Compression ratios (unzoomed) seem to range from 20:1 to 60:1...  The
  166. quality is considerably worse than wavelets or JPEG on most of the
  167. non-contrived images I have seen.
  168.  
  169. But Yuval Fisher <fisher@inls1.ucsd.edu> disagrees:
  170.  
  171. Their performance has improved dramatically beyond what they were
  172. talking about in BYTE a few years ago.  Human assistance to the
  173. compression is no longer needed and the compression time is
  174. reasonable, although the more time and compute power you throw at the
  175. compression, the smaller the resulting file for the same level of
  176. quality.
  177.  
  178. Geoffrey A Stephenson <ketlux@ketlux.demon.co.uk> adds:
  179.  
  180. Iterated systems are shipping a general purpose compressor at about
  181. 300 Pounds in the UK that claims "640x480 24 bit colour compression of
  182. about 1 min at 922k -> 10k on a 486/50 software only, decomp. to 8
  183. bits in 3 secs, etc." At a recent multimedia conference in London they
  184. handed out free demo disks that show the decomp. in action. The
  185. package runs under both DOS anf WIN (DLLs provided for use in
  186. applications). They also sell a board to speed up compression and
  187. offer versions supporting full motion video (but not apparently at all
  188. SVGA sizes like the static picture version). I have not yet got my
  189. hands on a full version to test different types of pictures, but
  190. friends have a and claim it looks good.
  191.  
  192.  
  193. Programs:
  194.  
  195. A fractal image compression program is available by ftp in
  196. lyapunov.ucsd.edu:/pub/young-fractal/unifs10.zip. (Unix users, See
  197. item 2 above for unzip on Unix.) Note the file size before you ftp it:
  198. 1.2 MB. The package contains source for compression and decompression,
  199. source for X-windows decompression, MSDOS executables and images.
  200.  
  201. A fractal image decompression program (note: decompression only) is
  202. available in /pub/inls-ucsd/fractal-2.0.tar on on the same ftp site
  203. (lyapunov.ucsd.edu). Note the file size before you ftp it: 1.3 MB.
  204. This file also contains a paper by Yuval Fisher (see reference below),
  205. and some executables and sample images. Reading this paper is required
  206. to understand how the Young compression program (see above) works.
  207.  
  208.  
  209. References:
  210.   A. Jacquin, 'Fractal image coding based on a theory of iterated
  211.     contractive image transformations', Visual Comm. and Image
  212.     Processing, vol SPIE-1360, 1990. (The best paper that explains
  213.     the concept in a simple way.)
  214.  
  215.   A. Jacquin, "A Fractal Theory of Iterated Markov Operators with
  216.     Applications to Digital Image Coding", PhD Thesis, Georgia Tech, 1989.
  217.   It can be obtained from university microfilms for $35, phone 1-800-521-0600.
  218.  
  219.   M. Barnsley, L. Anson, "Graphics Compression Technology, SunWorld,
  220.     October 1991, pp. 42-52.
  221.   M.F. Barnsley, A. Jacquin, F. Malassenet, L. Reuter & A.D. Sloan,
  222.     'Harnessing chaos for image synthesis', Computer Graphics,
  223.     vol 22 no 4 pp 131-140, 1988.
  224.   M.F. Barnsley, A.E. Jacquin, 'Application of recurrent iterated
  225.     function systems to images', Visual Comm. and Image Processing,
  226.     vol SPIE-1001, 1988.
  227.   A. Jacquin, "Image Coding Based on a Fractal Theory of Iterated Contractive
  228.     Image Transformations" p.18, January 1992 (Vol 1 Issue 1) of IEEE Trans
  229.     on Image Processing.
  230.   A.E. Jacquin, 'A novel fractal block-coding technique for digital
  231.     images', Proc. ICASSP 1990.
  232.   G.E. Oien, S. Lepsoy & T.A. Ramstad, 'An inner product space
  233.     approach to image coding by contractive transformations',
  234.     Proc. ICASSP 1991, pp 2773-2776.
  235.   D.S. Mazel, Fractal Modeling of Time-Series Data, PhD Thesis,
  236.     Georgia Tech, 1991.    (One dimensional, not pictures)
  237.   S. A. Hollatz, "Digital image compression with two-dimensional affine
  238.     fractal interpolation functions", Department of Mathematics and
  239.     Statistics, University of Minnesota-Duluth, Technical Report 91-2.
  240.     (a nuts-and-bolts how-to-do-it paper on the technique)
  241.   Stark, J., "Iterated function systems as neural networks",
  242.     Neural Networks, Vol 4, pp 679-690, Pergamon Press, 1991.
  243.   Monro D M and Dudbridge F, "Fractal block coding of images",
  244.     Electronics Letters 28(11):1053-1054 (1992)
  245.   Beaumont J M, "Image data compression using fractal techniques",
  246.     British Telecom Technological Journal 9(4):93-108 (1991)
  247.   Fisher Y, "Fractal image compression", Siggraph 92
  248.   Graf S, "Barnsley's Scheme for the Fractal Encoding of Images",
  249.     Journal Of Complexity, V8, 72-78 (1992).
  250.  
  251. Books:
  252.     The Fractal Transform,
  253.     Michael F. Barnsley and Louisa F. Anson
  254.     ISBN 0-86720-218-1, ca. 250 pp, $49.95
  255.  
  256.     Fractal Image Compression
  257.     Michael F. Barnsley and Lyman P. Hurd
  258.     ISBN 0-86720-457-5, ca. 250 pp., $49.95
  259.  
  260. Barnsley's company is:
  261.  
  262. Iterated Systems, Inc.
  263. 5550A Peachtree Parkway, Suite 545
  264. Norcross, GA  30092
  265. 404-840-0728
  266. 404-840-0029 (fax)
  267.  
  268. ------------------------------------------------------------------------------
  269.  
  270. Subject: [18] I need specs and source for TIFF and CCITT group 4 Fax
  271.  
  272.  
  273. Specs for Group 3 and 4 image coding (group 3 is very similar to group 4)
  274. are in CCITT (1988) volume VII fascicle VII.3. They are recommendations
  275. T.4 and T.6 respectively. There is also an updated spec contained in 1992
  276. recommendations T.1 to T.6.
  277.  
  278. CCITT specs are available by anonymous ftp (see above answer on V.42bis).
  279. The T.4 spec is in ccitt/1988/ascii/7_3_01.txt.Z, the T.6 spec
  280. is in 7_3_02.txt.Z.
  281.  
  282. Source code can be obtained as part of a TIFF toolkit - TIFF image
  283. compression techniques for binary images include CCITT T.4 and T.6:
  284.  
  285.     sgi.com:/graphics/tiff/v3.0beta.tar.Z     [192.48.153.1]
  286.     Contact: sam@sgi.com
  287.  
  288. There is also a companion compressed tar file (v3.0pics.tar.Z) that
  289. has sample TIFF image files. A draft of TIFF 6.0 is in TIFF6.ps.Z.
  290. Concerning TIFF 6.0, Tom Lane <tgl+@cs.cmu.edu> adds:
  291.  
  292. The TIFF document won't do you much good unless you also have the official
  293. JPEG standard.  That, you have to buy from ANSI or your national ISO member
  294. organization (DIN over there, I suppose).
  295.  
  296. Worse, the TIFF 6.0 spec has a number of serious problems in its JPEG
  297. features.  A clarification note will probably be needed to ensure that TIFF
  298. JPEG files are compatible across different implementations.  I can't in good
  299. faith recommend that anyone use TIFF-JPEG until these problems are resolved.
  300.  
  301.  
  302. See also question 54 below.
  303.  
  304. ------------------------------------------------------------------------------
  305.  
  306. Subject: [19] What is JPEG?
  307.  
  308.  
  309. JPEG (pronounced "jay-peg") is a standardized image compression mechanism.
  310. JPEG stands for Joint Photographic Experts Group, the original name of the
  311. committee that wrote the standard.  JPEG is designed for compressing either
  312. full-color or gray-scale digital images of "natural" (real-world) scenes.
  313. JPEG does not handle black-and-white (1-bit-per-pixel) images, nor does it
  314. handle motion picture compression.  (Standards for compressing those types
  315. of images are being worked on by other committees, named JBIG and MPEG
  316. respectively.)
  317.  
  318. A good introduction to JPEG is posted regularly in news.answers by
  319. Tom Lane <tgl+@cs.cmu.edu>. (See question 53 "Where are FAQ lists archived"
  320. if this posting has expired at your site.)
  321.  
  322. See also the book "JPEG Still Image Data Compression Standard" by
  323. William B. Pennebaker and Joan L. Mitchell. Published by Van Nostrand
  324. Reinhold (phone 800/842-3636), ISBN 0-442-01272-1. 650 Pages, $59.95.
  325. Review by Tom Lane: "This is by far the most complete exposition of
  326. JPEG in existence.  It's written by two people who know what they are
  327. talking about: both serve on the ISO JPEG standards committee.  If you
  328. want to know how JPEG works or why it works that way, this is the book
  329. to have."
  330.  
  331. ------------------------------------------------------------------------------
  332.  
  333. Subject: [20] I am looking for source of an H.261 codec.
  334.  
  335.  
  336. The H.261 spec is available on src.doc.ic.ac.uk in
  337. /doc/ccitt-standards/ccitt/1992/h/h261.doc.Z (or h261.rtf.Z)
  338.  
  339.  
  340. from Thierry TURLETTI <turletti@sophia.inria.fr>:
  341.  
  342. We have implemented a software version of H.261 codec.
  343. It runs on top of UNIX and X-Windows. The coder uses the simple video capture
  344. board "VideoPix" provided by SUN for the SparcStation. The output is directed
  345. towards a standard TCP connection, instead of the leased lines or switched
  346. circuits for which regular H.261 codecs are designed. This enable us to test
  347. video conferences over regular internet connections.
  348. We have to polish it a bit, but the first release is now available by anonymous
  349. ftp from avahi.inria.fr, in "/pub/h261.tar.Z".
  350.  
  351. ------------------------------------------------------------------------------
  352.  
  353. Subject: [25] Fast DCT (Discrete Cosine Transform) algorithms
  354.  
  355.  
  356. Here are some references provided by Tom Lane <tgl+@cs.cmu.edu>:
  357.  
  358. Polynomial Transform Computation of the 2-D DCT, Duhamel & Guillemot,
  359.   ICASSP '90 p. 1515.
  360. A Forward-Mapping Realization of the Inverse DCT, McMillan & Westover,
  361.   DCC '92 p. 219.
  362. A Fast Algorithm for 2-D DCT, Cho, Yun & Lee, ICASSP '91 p. 2197.
  363. Fast Algorithm and Implementation of 2-D DCT, Cho & Lee, Tr. CAS v38 p. 297.
  364. A DCT Chip based on a new Structured and Computationally Efficient DCT
  365.   Algorithm, Duhamel, Guillemot & Carlach, ICCAS '90 p. 77.
  366. Trade-offs in the Computation of Mono- and Multi-dimensional DCTs,
  367.   Vetterli, Duhamel & Guillemot, ICASSP '89 p. 999.
  368. Practical Fast 1-D DCT Algorithms with 11 Multiplications,
  369.   Loeffler, Ligtenberg & Moschytz, ICASSP '89 p. 988.
  370. New Scaled DCT Algorithms for Fused Multiply/Add Architectures,
  371.   Linzer & Feig, ICASSP '91 p. 2201.
  372. Fast Algorithms for the 2-D Discrete Cosine Transform, Kamangar & Rao,
  373.   IEEE Tr. Computers, v C-31 p. 899.
  374. Fast 2-D Discrete Cosine Transform, Vetterli, ICASSP '85 p. 1538.
  375. A Two-Dimensional Fast Cosine Transform, Haque, Tr. ASSP v ASSP-33 p. 1532.
  376. Real-Time Parallel and Fully Pipelined 2-D DCT Lattice Structures with
  377.   Application to HDTV Systems, Chiu & Liu, Tr. CAS for Video Tech, v 2 p. 25.
  378.  
  379. The Rao & Yip book cited in the jpeg v3 DCT code (see item 15 above) is a
  380. good overall introduction, with an extensive (though now dated) bibliography.
  381.  
  382. ------------------------------------------------------------------------------
  383.  
  384. Subject: [26] Are there algorithms and standards for audio compression?
  385.  
  386.  
  387. Yes. See the introduction to MPEG given in part 2 of this FAQ.
  388.  
  389. A lossless compressor for 8bit and 16bit audio data (.au) is available by
  390. anonymous ftp at svr-ftp.eng.cam.ac.uk:/pub/misc/shorten-0.4.shar. It works
  391. by using Huffman coding of prediction residuals.  Compression is generally
  392. better than that obtained by applying general purpose compression utilities
  393. to audio files.
  394.  
  395.  
  396. Copied from the comp.dsp FAQ posted by guido@cwi.nl (Guido van Rossum):
  397.  
  398. Strange though it seems, audio data is remarkably hard to compress
  399. effectively.  For 8-bit data, a Huffman encoding of the deltas between
  400. successive samples is relatively successful.  For 16-bit data,
  401. companies like Sony and Philips have spent millions to develop
  402. proprietary schemes.
  403.  
  404. Public standards for voice compression are slowly gaining popularity,
  405. e.g. CCITT G.721 and G.723 (ADPCM at 32 and 24 kbits/sec).  (ADPCM ==
  406. Adaptive Delta Pulse Code Modulation.)  Free source code for a *fast*
  407. 32 kbits/sec ADPCM (lossy) algorithm is available by ftp from ftp.cwi.nl
  408. as /pub/adpcm.shar.
  409.  
  410. (Note that U-LAW and silence detection can also be considered
  411. compression schemes.)
  412.  
  413.  
  414. See also the comp.dsp FAQ for more information on:
  415.  
  416. - The U.S. DoD's Federal-Standard-1016 based 4800 bps code excited linear
  417.   prediction voice coder version 3.2 (CELP 3.2)
  418. - The U.S. DoD's Federal-Standard-1015/NATO-STANAG-4198 based 2400 bps
  419.   linear prediction coder version 53 (LPC-10e v53)
  420. - Realtime DSP code and hardware for FS-1015 and FS-1016
  421.  
  422. You can find the comp.dsp FAQ in comp.dsp or news.answers with subject:
  423. "FAQ: Audio File Formats" or by ftp on pit-manager.mit.edu
  424. in /pub/usenet/news.answers/audio-fmts/part1.
  425.  
  426.  
  427. from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  428.  
  429. One highest quality sound compression format is called ASPEC and has
  430. been developped by a team at the Frauenhofer Institut in Erlangen (Germany)
  431. and others.
  432.  
  433. ASPEC produces CD like quality and offers several bitrates, one is
  434. 128 kbit/s. It is a lossy algorithm that throws away frequencys that
  435. aren't registered in the human cochlea in addition to sophisticated
  436. entropy coding. The 64 kbit/s ASPEC variant might soon bring hifi
  437. quality ISDN phone connections. It has been implemented on standard DSPs.
  438.  
  439. The Layer 3 MPEG audio compression standard now contains what is officially
  440. called the best parts of the ASPEC and MUSICAM algorithms. A reference is:
  441.  
  442.   K.Brandenburg, G.Stoll, Y.F.Dehery, J.D.Johnston, L.v.d.Kerkhof,
  443.   E.F.Schroeder: "The ISO/MPEG-Audio Codec: A Generic Standard for Coding
  444.   of High Quality Digital Audio",
  445.   92nd. AES-convention, Vienna 1992, preprint 3336
  446.  
  447. ------------------------------------------------------------------------------
  448.  
  449. Subject: [30] My archive is corrupted!
  450.  
  451.  
  452. The two most common reasons for this are
  453.  
  454. (1) failing to use the magic word "tenex" (when connected to SIMTEL20 and
  455.     other TOPS20 systems) or "binary" (when connected to UNIX systems) when
  456.     transferring the file from an ftp site to your host machine.  The
  457.     reasons for this are technical and boring.  A synonym for "tenex" is
  458.     "type L 8", in case your ftp doesn't know what "tenex" means.
  459.  
  460. (2) failing to use an eight-bit binary transfer protocol when transferring
  461.     the file from the host to your PC.  Make sure to set the transfer type
  462.     to "binary" on both your host machine and your PC.
  463.  
  464. ------------------------------------------------------------------------------
  465.  
  466. Subject: [31] pkunzip reports a CRC error!
  467.  
  468.  
  469. The portable zip 1.0 contains many workarounds for undocumented restrictions
  470. in pkunzip. Compatibility is ensured for pkunzip 1.10 only. All previous
  471. versions (pkunzip 1.0x) have too many bugs and cannot be supported. This
  472. includes Borland unzip.
  473.  
  474. So if your pkunzip reports a CRC error, check that you are not using
  475. an obsolete version. Get either pkzip 1.10 or unzip 5.0 (see question
  476. 2 above for ftp sites).
  477.  
  478. Immediately after zip 1.0 was released, a new undocumented feature
  479. of pkunzip was discovered, which causes CRC errors even with pkunzip 1.10
  480. on rare occasions. A patch is available on valeria.cs.ucla.edu in
  481. /pub/zip10.patch.
  482.  
  483. ------------------------------------------------------------------------------
  484.  
  485. Subject: [32] VMS zip is not compatible with pkzip!
  486.  
  487.  
  488. The problem is most likely in the file transfer program.
  489.  
  490. Many use kermit to transfer zipped files between PC and VMS VAX.  The
  491. following VMS kermit settings make VMS-ZIP compatible with PKZIP:
  492.  
  493.                                              VMS kermit        PC kermit
  494.                                            ---------------   --------------
  495.  
  496. Uploading PKZIPped file to be UNZIPped:    set fi ty fixed    set fi ty bi
  497. Downloading ZIPped file to be PKUNZIPped:  set fi ty block    set fi ty bi
  498.  
  499. If you are not using kermit, transfer a file created by pkzip on MSDOS
  500. to VMS, transfer it back to your PC and check that pkunzip can extract it.
  501.  
  502. ------------------------------------------------------------------------------
  503.  
  504. Subject: [50] What is this 'tar' compression program?
  505.  
  506.  
  507. tar is not a compression program. It just combines several files
  508. into one, without compressing them. tar file are often compressed with
  509. 'compress', resulting in a .tar.Z file. See question 2, file type .tar.Z.
  510. GNU tar has the capability to (de)compress files as well.
  511.  
  512. When you have to archive a lot of very small files, it is often
  513. preferable to create a single .tar file and compress it, than to
  514. compress the individual files separately. The compression program can
  515. thus take advantage of redundancy between separate files.  The
  516. disadvantage is that you must uncompress the whole .tar file to
  517. extract any member.
  518.  
  519. ------------------------------------------------------------------------------
  520.  
  521. Subject: [51] I need a CRC algorithm
  522.  
  523.  
  524. As its name implies (Cyclic Redundancy Check) a crc adds redundancy
  525. whereas the topic of this group is to remove it. But since this
  526. question comes up often, here is some code (by Rob Warnock <rpw3@sgi.com>).
  527.  
  528. The following C code does CRC-32 in BigEndian/BigEndian byte/bit order.
  529. That is, the data is sent most significant byte first, and each of the bits
  530. within a byte is sent most significant bit first, as in FDDI. You will need
  531. to twiddle with it to do Ethernet CRC, i.e., BigEndian/LittleEndian byte/bit
  532. order. [Left as an exercise for the reader.]
  533.  
  534. The CRCs this code generates agree with the vendor-supplied Verilog models
  535. of several of the popular FDDI "MAC" chips.
  536.  
  537. u_long crc32_table[256];
  538. /* Initialized first time "crc32()" is called. If you prefer, you can
  539.  * statically initialize it at compile time. [Another exercise.]
  540.  */
  541.  
  542. u_long crc32(u_char *buf, int len)
  543. {
  544.         u_char *p;
  545.         u_long  crc;
  546.  
  547.         if (!crc32_table[1])    /* if not already done, */
  548.                 init_crc32();   /* build table */
  549.         crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
  550.         for (p = buf; len > 0; ++p, --len)
  551.                 crc = (crc << 8) ^ crc32_table[(crc >> 24) ^ *p];
  552.         return ~crc;            /* transmit complement, per CRC-32 spec */
  553. }
  554.  
  555. /*
  556.  * Build auxiliary table for parallel byte-at-a-time CRC-32.
  557.  */
  558. #define CRC32_POLY 0x04c11db7     /* AUTODIN II, Ethernet, & FDDI */
  559.  
  560. init_crc32()
  561. {
  562.         int i, j;
  563.         u_long c;
  564.  
  565.         for (i = 0; i < 256; ++i) {
  566.                 for (c = i << 24, j = 8; j > 0; --j)
  567.                         c = c & 0x80000000 ? (c << 1) ^ CRC32_POLY : (c << 1);
  568.                 crc32_table[i] = c;
  569.         }
  570. }
  571.  
  572. ------------------------------------------------------------------------------
  573.  
  574. Subject: [52] What about those people who continue to ask frequently asked
  575.               questions in spite of the frequently asked questions document?
  576.  
  577.  
  578. Just send them a polite mail message, referring them to this document.
  579. There is no need to flame them on comp.compression.  That would just
  580. add more noise to this group.  Posted answers that are in the FAQ are
  581. just as annoying as posted questions that are in the FAQ.
  582.  
  583. ------------------------------------------------------------------------------
  584.  
  585. Subject: [53] Where are FAQ lists archived?
  586.  
  587.  
  588. Many are crossposted to news.answers.  That newsgroup should have a
  589. long expiry time at your site; if not, talk to your sysadmin.
  590.  
  591. FAQ lists are available by anonymous FTP from rtfm.mit.edu (18.72.1.58).
  592. The comp.compression FAQ that you are reading is in directory
  593.    /pub/usenet/news.answers/compression-faq
  594.  
  595. If you don't have FTP access, you can access the archives by mail
  596. server.  Send an email message to mail-server@pit-manager.mit.edu
  597. containing the commands
  598.     send usenet/news.answers/compression-faq/part1
  599.     send usenet/news.answers/compression-faq/part2
  600. For instructions, send an email message to the same address with the
  601. words "help" and "index" (no quotes) on separate lines. If you don't
  602. get a reply, check your return address, or add a line such as
  603.     path myname@foo.edu
  604.  
  605. ------------------------------------------------------------------------------
  606.  
  607. Subject: [54] I need specs for graphics formats
  608.  
  609.  
  610. Have a look in directory /pub/graphics.formats on zamenhof.cs.rice.edu.
  611. It contains descriptions of gif, tiff, fits, etc...
  612.  
  613. See also the FAQ list for comp.graphics.
  614.  
  615. ------------------------------------------------------------------------------
  616.  
  617. Subject: [55] Where can I find Lenna and other images?
  618.  
  619.  
  620. A bunch of standard images (lenna, baboon, cameraman, crowd, moon
  621. etc..) are on ftp site eedsp.gatech.edu (130.207.226.2) in directory
  622. /database/images. The images are in 256-level grayshades (256x256
  623. pixels, 256 "colors").
  624.  
  625. The site ftp.ipl.rpi.edu also has standard images, in two directories:
  626.    ftp.ipl.rpi.edu:/pub/image/still/usc
  627.    ftp.ipl.rpi.edu:/pub/image/still/canon
  628.  
  629. In each of those directories are the following directories:
  630.    bgr     - 24 bit blue, green, red
  631.    color   - 24 bit red, green, blue
  632.    gray    - 8 bit grayscale uniform weighted
  633.    gray601 - 8 bit grayscale CCIR-601 weighted
  634.  
  635. And in these directories are the actual images.
  636.  
  637. For example, the popular lena image is in
  638.    ftp.ipl.rpi.edu:/pub/image/still/usc/color/lena  # 24 bit RGB
  639.    ftp.ipl.rpi.edu:/pub/image/still/usc/bgr/lena    # 24 bit BGR
  640.    ftp.ipl.rpi.edu:/pub/image/still/usc/gray/lena   # 8 bit gray
  641.  
  642. All of the images are in Sun rasterfile format.  You can use the pbm
  643. utilities to convert them to whatever format is most convenient.
  644. [pbm is available in ftp.ee.lbl.gov:/pbmplus*.tar.Z].
  645. Questions about the ipl archive should be sent to rodney@ipl.rpi.edu.
  646.  
  647. The archive maintainer at ftp.ipl.rpi.edu is interested in some method
  648. of establishing a canonical ftp database of images and could volunteer
  649. the ipl to be an ftp site for that database. Send suggestions to
  650. rodney@ipl.rpi.edu.
  651.  
  652.  
  653. Beware: the same image often comes in many different forms, at
  654. different resolutions, etc... The original lenna image is 512 wide,
  655. 512 high, 8 bits per pel, red, green and blue fields.  Gray-scale
  656. versions of Lenna have been obtained in two different ways from the
  657. original:
  658.  (1) Using the green field as a gray-scale image, and
  659.  (2) Doing an RGB->YUV transformation and saving the Y component.
  660. Method (1) makes it easier to compare different people's results since
  661. everyone's version should be the same using that method.  Method (2)
  662. produces a more correct image.
  663.  
  664. For the curious: 'lena' or 'lenna' is a digitized Playboy centerfold,
  665. from November 1972. (Lenna is the spelling in Playboy, Lena is the
  666. Swedish spelling of the name.) Lena Soderberg (ne Sjooblom) was last
  667. reported living in her native Sweden, happily married with three kids
  668. and a job with the state liquor monopoly.  In 1988, she was
  669. interviewed by some Swedish computer related publication, and she was
  670. pleasantly amused by what had happened to her picture.  That was the
  671. first she knew of the use of that picture in the computer business.
  672.